<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      xmlns:th="http://www.thymeleaf.org"
      layout:decorator="backstage/layout">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>比分管理</title>
</head>

<body>
<div id="content" layout:fragment="content">
<script type="text/javascript" src="../../../admin/js/bootstrap-paginator.js"></script>
<script type="text/javascript" src="../../../admin/ace/js/fuelux/fuelux.spinner.min.js"></script>
<script type="text/javascript" src="../../../admin/ace/js/ace-elements.min.js"></script>
<script type="text/javascript" src="../../../admin/js/scoreManage.js"></script>
    <div class="box-content">
        <div class="row-fluid sortable">
            <div class="box span12">
                <h3 class="row-fluid header smaller lighter blue">
                   <span class="label label-large label-pink arrowed-right" id="title-span">比分管理</span>
                </h3>
                
                <form action="/scoreManage/list.htm" method="post" id="searchForm">
		            <input type="hidden"  id="page" name="page" th:value="${page.page}" />
		            <input type="hidden"  name="totalPage" th:value="${page.totalPage}" />
		            
		            <input type="hidden" name="seasonId" id="seasonId" th:value="${preliminaryContest.seasonId}"/>
		            
		           <table>
		             <tr>
		             	<td>日期：</td>
		             	<td>
		             		<input type="text" readonly='readonly' class='Wdate span9' onFocus='new WdatePicker()' name="date" th:value="${preliminaryContest.date}"/>
		             	</td>
		                 <td>球队：</td>
		                 <td>
			                 <input type="text" name="teamName" th:value="${preliminaryContest.teamName}"/>
		                 </td>
		                 <td>校区：</td>
		                 <td>
		                 	<input type="text" name="schoolName" th:value="${preliminaryContest.schoolName}"/>
		                 </td>
		                 <td>
		                 	<input type="button" class="btn btn-info btn-inverse" value="查询"/>
		                 </td>
		             </tr>
		           </table>
		            
		        </form>
                
                <div id="preliminary-contest-list" class="row-fluid sortable ui-sortable">
               		<input type="hidden" id="seasonId" th:value="${preliminaryContest.seasonId}"/>
               		<input type="hidden" id="type" th:value="${preliminaryContest.type}"/>
                	<table class="table table-striped table-bordered table-hover competition-team-table contest-list">
                		<thead>
	                		<tr>
	                			<td style="width: 80px; text-align: center;">日期</td>
	                			<td style="width: 80px; text-align: center;">时间</td>
	                			<td style="width: 80px; text-align: center;">对阵队伍1</td>
	                			<td style="width: 80px; text-align: center;">对阵队伍2</td>
	                			<td style="width: 80px; text-align: center;">校区</td>
	                			<td style="width: 80px; text-align: center;">场地</td>
	                			<td style="width: 80px; text-align: center;">比分</td>
	                			<td style="width: 80px; text-align: center;">比分技术统计</td>
	                			<td style="width: 80px; text-align: center;">投篮点分布</td>
	                		</tr>
                		</thead>
                		<tbody>
	                		<tr th:if="${not #lists.isEmpty(page.result)}" th:each="contest:${page.result}">
	                			<td style="width: 80px; text-align: center;" th:text="${contest.date}"></td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.time}"></td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.teamName}"></td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.teamTwoName}">
	                			</td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.schoolName}"></td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.site}"></td>
	                			<td style="width: 80px; text-align: center;" th:text="${contest.teamScore!=null?contest.teamScore+':'+contest.teamTwoScore : ''}">
	                			</td>
	                			<td style="width: 80px; text-align: center;">
	                				<a class='score-btn btn btn-info btn-small' th:id="${contest.id}">编辑</a>
	                				<input type="hidden" name="teamIds" th:value="${contest.teamId+','+contest.teamIdTwo}"/>
	                			</td>
	                			<td style="width: 80px; text-align: center;">
	                				<a class='fenbutu-btn btn btn-info btn-small' th:id="${contest.id}">编辑</a>
	                			</td>
	                		</tr>
                		</tbody>
                	</table>
                </div>
            </div><!--/span-->
        </div><!--/row-->
    </div>
    
</div>
</body>
</html>
